import request from '@/utils/request'

// 查询角色信息列表
export function listRoleManager(query) {
  return request({
    url: '/system/roleManager/list',
    method: 'get',
    params: query
  })
}

// 查询角色信息详细
export function getRoleManager(roleId) {
  return request({
    url: '/system/roleManager/' + roleId,
    method: 'get'
  })
}

// 新增角色信息
export function addRoleManager(data) {
  return request({
    url: '/system/roleManager',
    method: 'post',
    data: data
  })
}

// 修改角色信息
export function updateRoleManager(data) {
  return request({
    url: '/system/roleManager',
    method: 'put',
    data: data
  })
}

// 删除角色信息
export function delRoleManager(roleId) {
  return request({
    url: '/system/roleManager/' + roleId,
    method: 'delete'
  })
}
